<?php echo $this->doctype() ?>
<?php
	$info 					= new Zendvn_System_Info();
	$admin_info 			= $info->getMemberInfo();
	$siteConfig = Zend_Registry::get('siteConfig');
	/* echo '<pre>';
	print_r($siteConfig);
	echo '</pre>'; */
?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->headTitle() ?>
        <?php echo $this->headMeta() ?>
        <?php echo $this->headLink() ?>
        <script type="text/javascript">var base_url = "<?php echo $siteConfig['config_site']['site_url'];?>";</script>
		<?php echo $this->headScript() ?>
		<link rel="shortcut icon" href="/favicon.ico" />
    </head>
    <body class="body">
		<div class="block_header">
			<div class="logo">
				<a href="<?php echo $this->baseUrl('default/admin');?>">
					<img alt="Logo" src="<?php echo $siteConfig['config_site']['site_logo'];?>">
				</a>
			</div>
			<div class="right">
				<div class="top">
					<div class="timKiem">
						<form action="" method="post">
							<input type="text" name="keywords" class="txtSearch" onclick="showOption()">
							<button type="submit" class="btnSearch"></button>
							<div class="optionSearch">
								<label for="option_search-0"><input checked="checked" value="0" id="option_search-0" name=option_search type="radio" class="checkOption">Khách hàng</label>
								<label for="option_search-1"><input value="1" id="option_search-1" name="option_search" type="radio" class="checkOption">Lớp học</label>
								<label for="option_search-2"><input value="2" id="option_search-2" name="option_search" type="radio" class="checkOption">Nhân viên</label>
							</div>
							<script type="text/javascript">
								function showOption(){
									$('.optionSearch').show();
									$('.txtSearch').focus();
									$('body').append('<div id="overlay" style="width:100%; height:100%; top: 0; left: 0; z-index: 499; position: fixed;" onclick="hideOption()"></div>');
								}
								$('.optionSearch').click(function() {
									$('.txtSearch').focus();
								});
								function hideOption(){
									$('.optionSearch').hide();
									$('#overlay').remove();
								}
							</script>
						</form>
					</div>
					<div class="thongTin">
						<div class="thongbao">
							<a href="javascript:void(0)" class="view" id="thongbao_content" title="Thông báo">&nbsp;</a>
							<div class="thongTin_content" id="thongbao_content">
							</div>
							<div class="number">5</div>
						</div>
						<div class="canhbao">
							<a href="javascript:void(0)" class="view" id="canhbao_content" title="Cảnh báo">&nbsp;</a>
							<div class="thongTin_content" id="canhbao_content">
							</div>
							<div class="number">1</div>
						</div>
						<div class="congviec">
							<a href="javascript:void(0)" class="view" id="congviec_content" title="Công việc">&nbsp;</a>
							<div class="thongTin_content" id="congviec_content">
							</div>
							<div class="number">226</div>
						</div>
						<div class="lich">
							<a href="javascript:void(0)" class="view" id="lich_content">&nbsp;</a>
							<div class="thongTin_content" id="lich_content">
							</div>
						</div>
					</div>
					<div class="thanhVien">
						<div class="avatar">
							<?php
							if($admin_info['user_avatar'] != ''){
								echo '<img alt="Avatar" src="' . FILE_URL . '/users/img100x100/' . $admin_info['user_avatar'] . '">';
							}else{
								echo '<img alt="Avatar" src="' . $this->imgUrl . '/user-no-avater.jpg">';
							}
							?>
						</div>
						<div class="info">
							<div class="name"><?php echo $admin_info['name'];?></div>
							<br>
							<a href="<?php echo $this->baseUrl('default/public/logout');?>" class="thoat"><span class="icon-16-logout"></span>Thoát</a>
						</div>
						<?php
						/* echo '<pre>';
						print_r($admin_info);
						echo '</pre>';  */
						?>
					</div>
					<div class="clr"></div>
				</div>
				<div class="block_mainMenu">
					<ul class="menu">
						<li>
							<a href="<?php echo $this->baseUrl('default/admin');?>">Hệ thống</a>
							<ul>
								<li><a href="<?php echo $this->baseUrl('default/admin/index');?>"><span class="icon-16-cpanel"></span>Bảng điều khiển</a></li>
		                        <li><a href="<?php echo $this->baseUrl('default/admin-info/edit');?>"><span class="icon-16-profile"></span>Thông tin tài khoản</a></li>
		                        <li><a href="<?php echo $this->baseUrl('default/admin-config/index');?>"><span class="icon-16-config"></span>Cấu hình hệ thống</a></li>
		                        <li><a href="<?php echo $this->baseUrl('default/admin-system/index');?>"><span class="icon-16-content"></span>Báo cáo hệ thống</a></li>
		                        <li><a href="<?php echo $this->baseUrl('default/admin-media/index');?>"><span class="icon-16-media"></span>Media Manager</a></li>
		                        <li><a href="<?php echo $this->baseUrl('default/public/logout');?>"><span class="icon-16-logout"></span>Thoát</a></li>
							</ul>
						</li>
						<li>
							<a href="<?php echo $this->baseUrl('default/admin-user/index');?>">Nhân sự</a>
							<ul>
		                        <li><a href="<?php echo $this->baseUrl('default/admin-group/index');?>"><span class="icon-16-groups"></span>Nhóm sử dụng</a></li>
		                        <li><a href="<?php echo $this->baseUrl('default/admin-user/index');?>"><span class="icon-16-user"></span>Nhân viên</a></li>
		                        <li><a href="<?php echo $this->baseUrl('default/admin-chucvu/index');?>"><span class="icon-16-banner-client"></span>Chức vụ nhân viên</a></li>
		                        <li><a href="<?php echo $this->baseUrl('default/admin-permission/index');?>"><span class="icon-16-levels"></span>Quyền sử dụng</a></li>
		                        <li class="line_menu"></li>
		                        <li><a href="<?php echo $this->baseUrl('default/admin-coso/index');?>"><span class="icon-16-category"></span>Quản lý cơ sở</a></li>
		                        <li><a href="<?php echo $this->baseUrl('default/admin-phongban/index');?>"><span class="icon-16-category"></span>Quản lý phòng ban</a></li>
		                    </ul>
						</li>
						<li>
							<a href="">Khách hàng</a>
							<ul>
		                        <li><a href="<?php echo $this->baseUrl('khachhang/admin-khcn/add/tn/1'); ?> "><span class="icon-16-user-dd"></span>Thêm cá nhân tiềm năng</a></li>
								<li><a href="<?php echo $this->baseUrl('khachhang/admin-khtc/add/tn/1'); ?> "><span class="icon-16-newuser"></span>Thêm tổ chức tiềm năng</a></li>
		                        <li><a href="<?php echo $this->baseUrl('khachhang/admin-khcn/add/tn/0'); ?> "><span class="icon-16-user-dd"></span>Thêm cá nhân không theo dõi</a></li>
								<li><a href="<?php echo $this->baseUrl('khachhang/admin-khtc/addtc/tn/0'); ?> "><span class="icon-16-newuser"></span>Thêm tổ chức không theo dõi</a></li>
								<!-- <li><a href="<?php echo $this->baseUrl('khachhang/admin-dmll/add'); ?> "><span class="icon-16-user-dd"></span>Thêm đầu mối liên lạc</a></li> -->
								<li class="line_menu"></li>
								<li><a href="<?php echo $this->baseUrl('khachhang/admin-kh/index'); ?> "><span class="icon-16-groups"></span>Danh sách khách hàng</a></li>
								<li><a href="<?php echo $this->baseUrl('khachhang/admin-item/index/tn/1'); ?> "><span class="icon-16-groups"></span>Khách hàng tiềm năng</a></li>
								<li><a href="<?php echo $this->baseUrl('khachhang/admin-item/index/tn/0'); ?> "><span class="icon-16-groups"></span>Khách hàng không theo dõi</a></li>
								<li><a href="<?php echo $this->baseUrl('khachhang/admin-taiquanly/index'); ?> "><span class="icon-16-groups"></span>Khách hàng tái quản lý</a></li>
								<li><a href="<?php echo $this->baseUrl('khachhang/admin-delete/index'); ?> "><span class="icon-16-groups"></span>Khách hàng đã xóa</a></li>
								<!-- <li><a href="<?php echo $this->baseUrl('khachhang/admin-dmll/index'); ?> "><span class="icon-16-groups"></span>Đầu mối liên lạc</a></li> -->
		                    </ul>
						
						</li>
						<li>
							<a href="">Hợp đồng</a>
							<ul>
		                        <li><a href="<?php echo $this->baseUrl('hopdong/admin-item/index'); ?> "><span class="icon-16-groups"></span>Danh sách hợp đồng</a></li>
		                        <li><a href="<?php echo $this->baseUrl('hopdong/admin-item/recyclebin'); ?> "><span class="icon-16-groups"></span>Hợp đồng đã xóa</a></li>
		                        <li class="line_menu"></li>
		                        <li><a href="<?php echo $this->baseUrl('hopdong/admin-khuyenmai/index'); ?> "><span class="icon-16-money"></span>Chương trình khuyến mại</a></li>
		                        <li><a href="<?php echo $this->baseUrl('hopdong/admin-doanhthu/index'); ?> "><span class="icon-16-profit"></span>Xem doanh thu nhân viên </a></li>
		                        <li><a href="<?php echo $this->baseUrl('hopdong/admin-phongban/index'); ?> "><span class="icon-16-profit"></span>Xem doanh thu phòng ban </a></li>
		                    </ul>
						</li>
						<li>
							<a href="<?php echo $this->baseUrl('daotao/admin-lophoc/index');?>">Đào tạo</a>
							<ul>
		                        <li><a href="<?php echo $this->baseUrl('daotao/admin-khoahoc/index');?>"><span class="icon-16-category"></span>Quản lý khóa học</a></li>
		                        <li><a href="<?php echo $this->baseUrl('daotao/admin-lophoc/index');?>"><span class="icon-16-category"></span>Quản lý lớp học</a></li>
		                        <li class="line_menu"></li>
		                        <li><a href="<?php echo $this->baseUrl('daotao/admin-diadiemhoc/index');?>"><span class="icon-16-category"></span>Quản lý địa điểm học</a></li>
		                        <li><a href="<?php echo $this->baseUrl('daotao/admin-phonghoc/index');?>"><span class="icon-16-category"></span>Quản lý phonghoc</a></li>
		                        <li><a href="<?php echo $this->baseUrl('daotao/admin-lichhoc/index');?>"><span class="icon-16-category"></span>Quản lý lịch học</a></li>
		                        <li><a href="<?php echo $this->baseUrl('daotao/admin-item/index');?>"><span class="icon-16-category"></span>Danh sách học viên</a></li>
		                    </ul>
						</li>
						<li>
							<a href="<?php echo $this->baseUrl('club/admin-clb/index');?>">Câu lạc bộ</a>
							<ul>
		                        <li><a href="<?php echo $this->baseUrl('club/admin-clb/index');?>"><span class="icon-16-category"></span>Quản lý câu lạc bộ</a></li>
		                        <li><a href="<?php echo $this->baseUrl('club/admin-noidung/index');?>"><span class="icon-16-content"></span>Quản lý nội dung sinh hoạt</a></li>
		                        <li><a href="<?php echo $this->baseUrl('club/admin-event/index');?>"><span class="icon-16-content"></span>Quản lý quản lý Event</a></li>
		                        <li><a href="<?php echo $this->baseUrl('club/admin-clbkhachhang/index');?>"><span class="icon-16-user"></span>Thành viên CLB</a></li>
		                        <li><a href="<?php echo $this->baseUrl('club/admin-clbkhachhang/index');?>"><span class="icon-16-groups"></span>Thu phí sinh hoạt CLB</a></li>
		                        <li><a href="<?php echo $this->baseUrl('club/admin-sinhhoatclb/index');?>"><span class="icon-16-levels"></span>Xem danh sách phiếu thu</a></li>
		                        
		                    </ul>
						</li>
						<li>
							<a href="<?php echo $this->baseUrl('marketing/admin-item/index');?>">Maketing</a>
							<ul>
		                        <li><a href="<?php echo $this->baseUrl('marketing/admin-item/index');?>"><span class="icon-16-category"></span>Chiến dịch Maketing</a></li>
		                    	<li><a href="<?php echo $this->baseUrl('hoithao/admin-hoithao/index');?>"><span class="icon-16-category"></span>Hội thảo</a></li>
		                    	<li><a href="<?php echo $this->baseUrl('marketing/admin-class/index');?>"><span class="icon-16-category"></span>Chăm sóc khách hàng</a></li>
		                    </ul>
						</li>
						<li><a href="<?php echo $this->baseUrl('popup/admin-popup/index');?>">Popup</a></li>
						<li>
							<a href="<?php echo $this->baseUrl('seo/admin-filter/index');?>">SEO</a>
							<ul>
		                        <li><a href="<?php echo $this->baseUrl('seo/admin-filter/index');?>"><span class="icon-16-article"></span>Biên tập nội dung</a></li>
		                    </ul>
						</li>
					</ul>
					<script type="text/javascript">
						$('.menu li').hover(
							function(){
								$('a:first', this).addClass('selected');
								$('ul:first', this).show();
							},
							function(){
								$('a:first', this).removeClass('selected');
								$('ul:first', this).hide();
							}
						);
					</script>
				</div>
			</div>
			<div class="clr"></div>
		</div>